//    Copyright (C) Kherty.  All rights reserved.
using System;

namespace OpenLS.Spreadsheet.Functions
{
    class UnknownFunction: Function
    {
        public UnknownFunction(string name)
        {
            this._name = name;
        }
        readonly string _name;
        protected override object InvokeImp(Cell caller, Worksheet worksheet,Workbook workbook, object[] args)
        {
            return Errors.NameError;
        }
        public override string Name
        {
            get
            {
                return _name;
            }
        }

        internal override bool UsesVar
        {
            get { return false; }
        }

        public override string LocalizedName
        {
            get { return _name; }
        }
        internal override int MaximumParameterCount
        {
            get { return 0; }
        }
        internal override bool NoValueAccess
        {
            get { return false; }
        }
    }
}
